]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Fix slow audiovisual feedback on when taking screenshot
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 9 Feb 2021 11:51:33 +0000 (12:51 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 11 Feb 2021 18:51:40 +0000 (18:51 +0000)
commitc1bfdd74d8f03975994fedfb47cdcec99c854ae2
tree5988c35cb08de0cfdc77d949026bfc317b815726
parent461c65c93b2918de081b19528e7c0c95e649739c
screenshot: Fix slow audiovisual feedback on when taking screenshot

Add a "screenshot-taken" signal from the screenshot service's internal C
implementation, and use that to trigger the camera flash visual effect
and the click sound, allowing them to run in parallel with the PNG
compression instead of waiting until the file is complete to start.

This significantly improves perceived latency on high res setups such as
4K, 5K, or dual 4K screens.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/512

Co-authored-by: Brion Vibber <bvibber@wikimedia.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1658>
js/ui/screenshot.js
po/POTFILES.in
src/shell-screenshot.c